<!DOCTYPE html>
<html lang="zh-cn">
<#include "../include/head.html"/>
<body class="hold-transition skin-green sidebar-mini fixed">
<div class="row">
    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
        <div class="content">
            <div class="panel panel-success panel-intro">
                <div class="panel-body">
                    <div class="bootstrap-table">
                        <form class="form-inline" action="">
                        <@search labels=['标题'] names=['articles']></@search>
                            <div class="form-group">
                                <div class="col-sm-12 text-center">
                                    <button type="submit" class="btn btn-success">查询</button>
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="bs-bars pull-left" style="padding-top: 5px">
                        <a class="btn btn-info" href="javascript:location.reload(true)"><i
                                class="fa fa-refresh"></i></a>
                        <a class="btn btn-success" href="${basePath}/mp/news/add"><i
                                class="fa fa-plus"></i></a>
                    </div>
                    <div class="fixed-table-container">
                        <div class="fixed-table-header " style="white-space:nowrap;overflow-x:scroll;">
                            <table class="table table-striped table-bordered table-hover" width="100%">
                                <thead style="display: table-header-group;">
                                <tr>
                                    <th>标题</th>
                                    <th>URL</th>
                                    <th>添加时间</th>
                                </tr>
                                </thead>
                                <tbody>
                                <#if pageInfo??>
                                    <#list pageInfo.list as item>
                                    <tr>
                                        <td>${item.articles!}</td>
                                        <td>${item.url!}</td>
                                        <td>${item.createdTime?string('yyyy-MM-dd HH:mm:ss')}</td>
                                    </tr>
                                    </#list>
                                <#else>
                                <tr class="no-records-found">
                                    <td colspan="6">没有找到匹配的记录</td>
                                </tr>
                                </#if>
                                </tbody>
                            </table>
                        </div>
                    <#include "../include/page.html"/>
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
        </div>
    </div>
</div>

</body>
<script src="${basePath}/assets/js/app.js"></script>
</html>